home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / m2 / m2_part1.lha / modula / dice / dice.LHA / include / sys / stat.h < prev    next >
C/C++ Source or Header  |  1991-04-17  |  699b  |  43 lines

  1.  
  2. /*
  3.  *  SYS/STAT.H
  4.  */
  5.  
  6. #ifndef _SYS_STAT_H
  7. #define _SYS_STAT_H
  8.  
  9. #ifndef LIBRARIES_DOS_H
  10. #include <libraries/dos.h>
  11. #endif
  12.  
  13. #define S_IFMT        0xF0000
  14. #define S_IFREG     0x10000
  15. #define S_IFDIR     0x20000
  16. #define S_IFLNK     0x30000
  17. #define S_IFCHR     0x40000
  18. #define S_IFBLK     0x50000
  19.  
  20. #define S_IREAD     000400
  21. #define S_IWRITE    000200
  22. #define S_IEXEC     000100
  23.  
  24. typedef long dev_t;
  25. typedef long ino_t;
  26.  
  27. struct stat {
  28.     long    st_mode;
  29.     long    st_size;
  30.     long    st_blksize;
  31.     long    st_blocks;
  32.     long    st_ctime;
  33.     long    st_mtime;
  34.     long    st_dev;
  35.     long    st_ino;
  36. };
  37.  
  38. extern int stat(const char *, struct stat *);
  39. extern int fstat(int, struct stat *);
  40.  
  41. #endif
  42.  
  43.